package cn.jieruoda.eb.system.domain.entity;

import java.io.Serializable;
import java.util.Date;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import lombok.Data;

/**
 * 微信模板
 */
@Data
@Entity
@Table(name = "template_message")
public class TemplateMessage implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 模板id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    
    /**
     * 0=订阅消息,1=微信模板消息
     */
    @Column(name = "type", nullable = false)
    private Integer type;
    
    /**
     * 模板编号
     */
    @Column(name = "temp_key", nullable = false, length = 50)
    private String tempKey;
    
    /**
     * 模板名
     */
    @Column(name = "name", nullable = false, length = 100)
    private String name;
    
    /**
     * 回复内容
     */
    @Column(name = "content", nullable = false, length = 1000)
    private String content;
    
    /**
     * 模板ID
     */
    @Column(name = "temp_id", length = 100)
    private String tempId;
    
    /**
     * 状态
     */
    @Column(name = "status", nullable = false)
    private Integer status;
    
    /**
     * 添加时间
     */
    @Column(name = "create_time", nullable = false)
    private Date createTime;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time", nullable = false)
    private Date updateTime;
} 